package com.ornate.platform.user.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.ornate.platform.user.action.UserAction;
import com.ornate.platform.user.biz.IUserBiz;
import com.ornate.platform.user.dao.IUserDao;

@Service
public class UserBiz extends UserAction implements IUserBiz {

	private static final long serialVersionUID = -5124572404321993509L;

	private IUserDao userDao;

	public List<Map<String, Object>> query(Map<String, Object> params) {
		return userDao.query(params);
	}

	public int count(Map<String, Object> params) {
		return userDao.count(params);
	}

	@Override
	public int insert(Map<String, Object> params) {
		return userDao.insert(params);
	}

	@Override
	public int update(Map<String, Object> params) {
		return userDao.update(params);
	}

	@Override
	public int delete(Map<String, Object> params) {
		return userDao.delete(params);
	}

	public void setIUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

}
